<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/10
 * Time: 10:53
 */
namespace App\Http\ProtoCmd;
class AnsLoginPlatform extends \DrSlump\Protobuf\Message {

    /**  @var int */
    public $test = null;


    /** @var \Closure[] */
    protected static $__extensions = array();

    public static function descriptor()
    {
        $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'ProtoCmd.AnsLoginPlatform');

        // REQUIRED UINT32 test = 1
        $f = new \DrSlump\Protobuf\Field();
        $f->number    = 1;
        $f->name      = "test";
        $f->type      = \DrSlump\Protobuf::TYPE_UINT32;
        $f->rule      = \DrSlump\Protobuf::RULE_REQUIRED;
        $descriptor->addField($f);

        foreach (self::$__extensions as $cb) {
            $descriptor->addField($cb(), true);
        }

        return $descriptor;
    }

    /**
     * Check if <test> has a value
     *
     * @return boolean
     */
    public function hasTest(){
        return $this->_has(1);
    }

    /**
     * Clear <test> value
     *
     * @return \ProtoCmd\AnsLoginPlatform
     */
    public function clearTest(){
        return $this->_clear(1);
    }

    /**
     * Get <test> value
     *
     * @return int
     */
    public function getTest(){
        return $this->_get(1);
    }

    /**
     * Set <test> value
     *
     * @param int $value
     * @return \ProtoCmd\AnsLoginPlatform
     */
    public function setTest( $value){
        return $this->_set(1, $value);
    }
}